import fetch from '../utils/fecth'
import axios from "axios"
/**
 * params:  一般用于get请求的Url请求头
 * data:    一般用于post请求的body报文
 */

// 获取信息
export function getInfo() {
  return fetch({
    url: `/data/getInfo`,
    method: 'get'
  })
}

export const getlist = (obj) => axios({
	url: "https://m.mynj.cn:11005/ggzy/yqfk/list",
	method: "post",
	data:obj
  })

//查询用户状态
export const getUserStatus = (data) => axios({
  url: "https://m.mynj.cn:11005/metro/member/queryUserStatus",
  method: "post",
  data: {
      "data":`${data}`
  }
})

//注销银联账户
export const unregister = (user_id) => axios({
  url: "https://m.mynj.cn:11005/metro/member/unregister",
  method: "post",
  data: {
      "user_id":`${user_id}`
  }
})

//更改用户状态
export const UserStatus = (user_id,status) => axios({
  url: "https://m.mynj.cn:11005/metro/member/updateUserStatus",
  method: "post",
  data: {
      "user_id":`${user_id}`,
      "status":`${status}`
  }
})

//用户注册账户
export const register = (data,idType,userType,isOpebWallet) => axios({
  url: "https://m.mynj.cn:11005/metro/member/register",
  method: "post",
  data: {
      "data":`${data}`,
      "idType":`${idType}`,
      "userType":`${userType}`,
      "isOpebWallet":`${isOpebWallet}`
  }
})